<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>基础百度地图显示</title>
    <link rel="shortcut icon" href="../lib/image/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="../lib/css/all.css">

    <script src="https://api.map.baidu.com/api?v=3.0&ak=SFTq3TaGNytoBiL3bGvwmgSMqhdqoGAK"></script>
</head>

<body>
    <div id="app" style="width: 500px;height: 500px;"></div>
</body>
<script>
    let map = new BMap.Map("app"); // 创建Map实例
    map.centerAndZoom(new BMap.Point(118.402316, 35.090789), 13); // 初始化地图,设置中心点坐标和地图级别
    map.enableScrollWheelZoom(true); //开启鼠标滚轮缩放
</script>

</html>